<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"/>

</head>

<body>




<div>
    <div>
        <H1>for 循环</H1>
        {{#each persons}}
            <div>
                <a>{{this.name}}</a>
                <a>{{this.age}}</a>
            </div>
        {{/each}}
    </div>

    <div>
        <H1>引用模块并传递参数</H1>
        {{#each persons}}
            {{>"templates/person" person=.}}
        {{/each}}

    </div>

    <div >
        <H1>拦截参数并渲染</H1>
        <div id="tableList">
            <div>
                {{loud persons}}
            </div>
        </div>
    </div>

</div>

<script src="/static/js/jquery-3.1.1.js"></script>
<script src="/static/js/handlebars-v4.0.2.js"></script>


</body>


</html>